/**
 * index:
   @author:liuyanhui
   date:2014年12月23日下午11:09:14
 */
package com.neusoft.cmsprojects.action;

import com.opensymphony.xwork2.ActionSupport;

/**
 * @author Administrator
 *
 */
public class SelfActionSupport extends ActionSupport{
    private String serverPath;
	
	public String getServerPath() {
        serverPath = getClass().getProtectionDomain().getCodeSource()
                .getLocation().getPath();
        serverPath = serverPath.substring(1, serverPath.indexOf("WEB-INF"));
        System.out.println(serverPath);
        serverPath.replaceAll("%20"," ");
        System.out.println(serverPath);
        return serverPath;
    }

	/**
	 * @param serverPath the serverPath to set
	 */
	public void setServerPath(String serverPath) {
		this.serverPath = serverPath;
	}
	
}
